package com.yigo.cuc.api.customer.command;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * @author chenzl
 */
@Data
public class CustomerRegisterCmd {
    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    private String userName;
    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;
    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    private String phone;
    /**
     * 邮箱
     */
    @Email(message = "请输入正确的邮箱格式")
    private String email;
}
